<template>
  <h4>这里是 App 组件</h4>
  <Demo propA="李四" propB="55" @hello="showHelloMsg">
    <span>This is a default slot</span>
    <template v-slot:qwe>This is a named template</template>
  </Demo>
</template>

<script>
import Demo from './components/Demo.vue'
export default {
  name: "App",
  components: {
    Demo
  },
  setup() {
    function showHelloMsg(value) {
      alert(`Hello! 我接收到了一个参数: ${value}`)
    }
    return {
      showHelloMsg
    }
  }
};
</script>

<style></style>
